package com.ruoyi.projects.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 店内活动对象 sl_activitys
 * 
 * @author yangz
 * @date 2024-12-01
 */
public class SlActivitys extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 活动id */
    private Long id;

    /** 活动昵称 */
    @Excel(name = "活动昵称")
    private String activityName;

    /** 活动开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "活动开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date activityStartTime;

    /** 活动结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "活动结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date activityEndTime;

    /** 活动封面图 */
    @Excel(name = "活动封面图")
    private String activityImg;

    /** 活动费用 */
    @Excel(name = "活动费用")
    private BigDecimal activityMoney;

    /** 活动原价 */
    @Excel(name = "活动原价")
    private BigDecimal activityOldMoney;

    /** 上架状态（0未上架，1已上架） */
    @Excel(name = "上架状态", readConverterExp = "0=未上架，1已上架")
    private String ifFlag;

    private Long userId;
    private String ifReport="0";//新增字段是否报名，针对已登录的前端用户用作标识，未报名为0

    private Integer pageNum;
    private Integer pageSize;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getIfReport() {
        return ifReport;
    }

    public void setIfReport(String ifReport) {
        this.ifReport = ifReport;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setActivityName(String activityName) 
    {
        this.activityName = activityName;
    }

    public String getActivityName() 
    {
        return activityName;
    }
    public void setActivityStartTime(Date activityStartTime) 
    {
        this.activityStartTime = activityStartTime;
    }

    public Date getActivityStartTime() 
    {
        return activityStartTime;
    }
    public void setActivityEndTime(Date activityEndTime) 
    {
        this.activityEndTime = activityEndTime;
    }

    public Date getActivityEndTime() 
    {
        return activityEndTime;
    }
    public void setActivityImg(String activityImg) 
    {
        this.activityImg = activityImg;
    }

    public String getActivityImg() 
    {
        return activityImg;
    }
    public void setActivityMoney(BigDecimal activityMoney) 
    {
        this.activityMoney = activityMoney;
    }

    public BigDecimal getActivityMoney() 
    {
        return activityMoney;
    }
    public void setActivityOldMoney(BigDecimal activityOldMoney) 
    {
        this.activityOldMoney = activityOldMoney;
    }

    public BigDecimal getActivityOldMoney() 
    {
        return activityOldMoney;
    }
    public void setIfFlag(String ifFlag) 
    {
        this.ifFlag = ifFlag;
    }

    public String getIfFlag() 
    {
        return ifFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("activityName", getActivityName())
            .append("activityStartTime", getActivityStartTime())
            .append("activityEndTime", getActivityEndTime())
            .append("activityImg", getActivityImg())
            .append("activityMoney", getActivityMoney())
            .append("activityOldMoney", getActivityOldMoney())
            .append("ifFlag", getIfFlag())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .toString();
    }
}
